package com.store.orm.util;

/**
 * 字符串实用工具类
 *
 * @author 宫静雨
 * @version 1.0
 */
public class StringUtil {

    public static String firstUpper(String str) {
        char[] chars = str.toCharArray();
        chars[0] -= 32;
        return new String(chars);
    }

    public static String firstLower(String str) {
        char[] chars = str.toCharArray();
        chars[0] += 32;
        return new String(chars);
    }

    // 判断提供的字符串是不是空白或空值
    public static boolean isBlank(String s) {
        return (s == null || s.length() == 0);
    }
}